<html lang="zh-CN"><head>
<title>自提点</title>
<meta charset="UTF-8">
<meta name="viewport" content=" initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
	<script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/alertMsg.js"></script>
<script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/share_product.js?2014-01-05"></script>
<link href="{$Think.config.RESOURCEURL}wx_assets/css/product_list.css?v=2014-01-10" rel="stylesheet">
<link href="{$Think.config.RESOURCEURL}wx_assets/css/product_templates.css" rel="stylesheet">
</head>
<body>
<notempty name="headerTpl">
	<include file="$headerTpl" />
</notempty>

<input type="hidden" id="isUpdate" name="isUpdate" value="-1">
<input type="hidden" id="oprTip" name="oprTip" value="0">
<input type="hidden" id="provId" name="provId" value="-1">
<div class="lay_page page_address_add" id="page_address_add">
    <div class="lay_page_wrap">
        <div class="qb_gap qb_pt10">
            <div>
            	<div class="qb_mb10">
				<span style="padding-left:5px;">请选择您附近的自提点：</span>
				</div>
                <span class="mod_select qb_mr10 qb_mb10" id="sprovince">
                    <select name="pvid" id="province">
                        <option value="-1">选择区域</option>
                        <volist name="storeList" id="store">
                        	<option value="{$store.id}" leaf="{$store.leaf}">{$store.name}</option>
                        </volist>
                    </select>
                </span>
                <span class="mod_select qb_mr10 qb_none" id="scity">
                    <select name="ctid" id="city">
                        <option value="-1">选择区域</option>
                    </select></span>
                <span class="mod_select qb_mb10 qb_none">
                    <select name="regionId" id="regionId">
                        <option value="-1">选择自提点</option>
                    </select></span>
            </div>
            <div class="qb_mb10">
                 <a id="save_store" class="mod_btn btn_em btn_block" href="javascript:void(0)">保存自提点</a>
            </div>
            <div class="qb_quick_tip qb_none" id="bubble"></div>
        </div>
    </div>
</div>
<notempty name="footerTpl">
	<include file="$footerTpl"/>
</notempty>
<script>
var hrefParamsArray = GetSessionIdFromHref(window.location.search);
hrefParamsArray["userName"]='{$userName}';
function GetSessionIdFromHref(search){
　　	var args = search.substring(1); 
　　	var retval = new Array(); 
	args = args.split("&"); 
		for(var i = 0; i < args.length; i ++){ 
			str = args[i]; 
			var arg = str.split("="); 
			if(arg.length <= 1) continue; 
			
			if(arg[0] == 'params') {
				var params = decodeURIComponent(arg[1]);
				var obj = eval('(' + params + ')');
				if (obj.rootid != undefined) {
					retval["rootid"] = obj.rootid;
				}
				if (obj.oid != undefined) {
					retval["oid"] = obj.oid;
				}
				if (obj.tplid != undefined) {
					retval["tplid"] = obj.tplid;
				}
				if (obj.ptype != undefined) {
					retval["ptype"] = obj.ptype;
				}
				if (obj.dtype != undefined) {
					retval["dtype"] = obj.dtype;
				}
			} else if(arg[0] == 'customerId') {
				retval["customerId"] = arg[1]; 
			}else if(arg[0] == 'userName'){
				retval["userName"] = arg[1]; 
			}
		} 
		return retval; 
}

var hrefPath = 'call.html?customerId='+ hrefParamsArray["customerId"];
var basePath = 'call.json?customerId='+ hrefParamsArray["customerId"]+'&userName='+hrefParamsArray["userName"];
var rootId = hrefParamsArray["rootid"] == undefined ? '' : ',"rootid":' + hrefParamsArray["rootid"];
var preOid = hrefParamsArray["oid"];
var tplid = hrefParamsArray["tplid"];
var ptype = hrefParamsArray["ptype"]  == undefined ? '' : ',"ptype":"' + hrefParamsArray["ptype"] + '"';
var dtype = hrefParamsArray["dtype"]  == undefined ? '' : ',"dtype":"' + hrefParamsArray["dtype"] + '"';
</script>
    <script src="wx_assets/js/zepto_product.js?v=201401121"></script>
    <script type="text/javascript">
        happyidea.product.pickupstore.init();
    </script>
</body>
</html>